package com.zxw.mvpproject.mvp.manager;

import android.content.Context;

import com.zxw.mvpproject.mvp.RetrofitHelper;
import com.zxw.mvpproject.mvp.RetrofitService;
import com.zxw.mvpproject.mvp.bean.Book;

import rx.Observable;

/**
 * 创建时间 ：2018/5/3.
 * 创建人 ：${zxw}.
 * 功能描述：
 */

public class DataManager {
    private RetrofitService mRetrofitService;
    public DataManager(Context context) {
        mRetrofitService = RetrofitHelper.getInstance(context).getRetrofitService();
    }

    public Observable<Book> getSearchBook(String name,String tag,int count,int start){
        return mRetrofitService.getSearch(name,tag,count,start);
    }
}
